<template>
    <div id="app">
        这是个人中心
    </div>
</template>

<script>
export default {
    //进入center之前
    beforeRouteEnter(to,from,next){
        console.log("rurururuururu")
        next()
    },
    beforeRouteLeave(to,from,next){
    console.log("liakile1")
    next()
    }
}
</script> 